//
//  SAClassifyVC.m
//  YunFu
//
//  Created by Bager on 2018/9/12.
//  Copyright © 2018年 yunfu. All rights reserved.
//

#import "SAClassifyVC.h"

#import "SAClassifyMainView.h"
#import "SAClassifyDetailView.h"

@interface SAClassifyVC ()

@property (nonatomic, strong) SAClassifyMainView *mainView;
@property (nonatomic, strong) SAClassifyDetailView *detailView;

@end

@implementation SAClassifyVC

- (void)viewWillAppear:(BOOL)animated
{
//    self.navigationController.navigationBarHidden = NO;
//    [self.navigationController setNavigationBarHidden:NO animated:animated];
//    self.sx_disableInteractivePop = YES;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.title = @"分类";
    self.view.backgroundColor = kPublicColorLightGray;
    
    [self.view addSubview:self.mainView];
    [self.view addSubview:self.detailView];
}

- (SAClassifyMainView *)mainView
{
    if (!_mainView)
    {
        _mainView = [[SAClassifyMainView alloc] initWithFrame:CGRectMake(0, 0, 80, kScreenHeight - kPublicNavHeight - 49)];
    }
    return _mainView;
}

- (SAClassifyDetailView *)detailView
{
    if (!_detailView)
    {
        _detailView = [[SAClassifyDetailView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.mainView.frame) + 10, 0, kScreenWidth - CGRectGetMaxX(self.mainView.frame) - 10, kScreenHeight - kPublicNavHeight - 49)];
    }
    return _detailView;
}


@end
